package com.baizhi.cmfz.service.impl;

import com.baizhi.cmfz.annotation.AddCacheAnnotation;
import com.baizhi.cmfz.dao.AudioDao;
import com.baizhi.cmfz.entity.Audio;
import com.baizhi.cmfz.service.AudioService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AudioServiceImpl implements AudioService {

	@Resource
	private AudioDao audioDao;
	@Override
	@AddCacheAnnotation
	public List<Audio> selectAll(int audioId) {
		return audioDao.selectAll(audioId);
	}
}
